<template>
  <div id="apps">
    <template v-if="route.path.startsWith('/user')">
      <router-view></router-view>
    </template>
    <template v-else>
      <BaseLayout></BaseLayout>
    </template>
  </div>
</template>

<script setup type="ts">
import BaseLayout from "@/layouts/BaseLayout";
import { onMounted } from "vue";
import { useRoute } from "vue-router";

const route = useRoute();
const doInit = () => {
  console.log("欢迎来到QJOJ");
};
onMounted(() => {
  doInit();
});
</script>

<style></style>
